-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary Option
from ZalsaLocal::query_stack
#624
Conversation
✅ Deploy Preview for salsa-rs canceled.
|
CodSpeed Performance ReportMerging #624 will not alter performanceComparing Summary
|
aqs.iter_mut().for_each(|aq| { | ||
cycle_query.add_from(aq); | ||
v.push(aq.database_key_index); | ||
let (me_recovered, others_recovered, cycle) = local_state.with_query_stack(|from_stack| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff here is just the closure wrapping causing an extra level of indentation
thread_id, | ||
database_key, | ||
other_id, | ||
mem::take(stack), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mem::take
is effectively what was Option::take
before here
fc14245
to
ef5c798
Compare
ea69875
to
1925bf2
Compare
1925bf2
to
ac40e4c
Compare
This removes a couple panic paths